(Al-Kahf) 18 : 12
ثُمَّ بَعَثْنَاهُمْ لِنَعْلَمَ أَيُّ الْحِزْبَيْنِ أَحْصَىٰ لِمَا لَبِثُوا أَمَدًا

Then We awakened them that We might know which of the two parties was best in calculating the term of years they had remained in the cave.